class CreateTalkees < ActiveRecord::Migration
  def self.up
    create_table :talkees do |t|
      t.references  :user
      
      t.boolean     :flag, :default => 0 #0:reply to talk; 1:reply to talkee
      t.boolean     :deleted, :default => 0 #0:this talkee is not deleted; 1:deleted
      t.references  :talk
      t.references  :talkee
      
      t.text        :body

      t.timestamps
    end
  end

  def self.down
    drop_table :talkees
  end
end
